package com.example.service;

import com.example.config.ResponseVO;
import com.example.pojo.LeaveRequest;
import com.example.pojo.dto.LeaveRequestDTO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface LeaveRequestService {
    // 查询所有请假信息
    ResponseEntity<ResponseVO<List<LeaveRequest>>> leaveRequestListByClassId(Long classId);
    // 查询所有请假信息
    ResponseEntity<ResponseVO<List<LeaveRequestDTO>>> getNotProcessedLeave(Long classId);
    ResponseEntity<ResponseVO<List<LeaveRequestDTO>>> getProcessedLeave(Long classId);
    // 根据学生id查询该学生是否还有未批准的假期
    ResponseEntity<ResponseVO<LeaveRequest>> leaveRequestByStuId(Long stuId);
    // 添加学生请假信息
    ResponseEntity<ResponseVO<LeaveRequest>> addLeaveRequest(LeaveRequestDTO leaveRequestDTO);
    // 批准假期
    ResponseEntity<ResponseVO<String>> processedLeave(String remark,Long teacherId,LeaveRequestDTO leaveRequestDTO);
}
